import type { MockMethod } from "vite-plugin-mock";

const columns = [
  {
    colKey: "applicant",
    title: "申请人",
    width: "100",
  },
  {
    colKey: "status",
    title: "申请状态",
  },
  {
    colKey: "channel",
    title: "签署方式",
  },
  {
    colKey: "operation",
    title: "操作",
  },
  { colKey: "action", title: "操作" },
];
const data = [
  {
    applicant: "张三",
    status: "待审批",
    channel: "线上",
    operation: "详情sahkdhashdkashkdhkashdhashdhashkdhashkdhashkdhkashdkhask",
  },
  {
    applicant: "李四",
    status: "已审批",
    channel: "线下",
    operation:
      "详情sahkdhash这是一件大会精神动环监控回家客户dkashkdhkashdhashdhashkdhashkdhashkdhkashdkhask",
  },
  {
    applicant: "王五",
    status: "已审批",
    channel: "线上",
    operation:
      "详情sahkdhash这是一件大会精神动环监控回家客户dkashkdhkashd等哈数据库的话hashdhashkdhashkdhashkdhkashdkhask",
  },
  {
    applicant: "赵六",
    status: "已审批",
    channel: "线下",
    operation:
      "详情sahkdhash这是一件大会精神动环监控回家客户dkashkdhkashdhashd这个中间有队对撒hashkdhashkdhashkdhkashdkhask",
  },
  {
    applicant: "王二",
    status: "已审批",
    channel: "线上",
    operation:
      "详情sahkdhash这是一件大会精神动环监控回家客户dkashkdhkashdhashdhashkdhashkdhashkdhkashdkhask",
  },
  {
    applicant: "张三",
    status: "待审批",
    channel: "线上",
  },
];

const bookList = {
  code: 200,
  msg: "获取书籍列表成功",
  data: {
    columns,
    data: data,
  },
};
export default [
  {
    url: "/api/v1/books",
    method: "get",
    response: () => {
      return bookList;
    },
  },
] as MockMethod[];
